package com.noble.glamour.module.logic.socket.listener;

import com.noble.glamour.module.logic.socket.NetData;
import com.noble.glamour.module.logic.socket.utils.SocketState;

/**
 * Socket连接状态监听类
 */
public interface SocketConnectionListener {
    void onSocketConnected();

    void onSocketConnecting();

    void onSocketConnectError();

    void onSendPacketError(SocketState state, NetData failedData);

    void onSocketDisconnectByError();

    void onReceivePacket(NetData data);

    void onSocketDisconnectNormally();
}
